package com.atguigu.guli.service.trade.feign;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.trade.feign.fallback.EduFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-edu" , fallback = EduFeignClientFallback.class)
public interface EduFeignClient {
    @GetMapping("/api/edu/course/get-courseinfo/{id}")
    public R getCourseInfo(@PathVariable String id);

    @PutMapping("/api/edu/course/updateSales/{id}")
    public R updateSales(@PathVariable String id , @RequestParam String uuid);
}
